DX11 BUILD ORTHOGRAPHIC LHMATRIX

Builds a left-handed orthographic projection matrix based on a box in view space.

  Syntax
Return Dword = DX11 BUILD ORTHOGRAPHIC LHMATRIX(left, right, bottom, top, near, [far], [resultMatrix])
  Parameters
left
Float
The leftmost viewspace coordinate to project.
right
Float
The rightmost viewspace coordinate to project.
bottom
Float
The bottommost viewspace coordinate to project.
top
Float
The topmost viewspace coordinate to project.
near
Float
The distance to the near clipping plane.
[Optional] far
Float
The distance to the far clipping plane.
[Optional] resultMatrix
Dword
The matrix to write the created projection matrix to. Can be omitted, in which case a temporary matrix holding the generated projection matrix will be returned.

  Returns

The resultMatrix, if one was provided, or a newly created temporary matrix holding the resulting matrix otherwise.

  See also

MATH Functions Menu
DX11 Function Categories